<?php include_once 'photo_header.php';?>
<!--主体内容-->
<div class="main">
	<?php include_once 'photo_left.php';?>

	<div class="photo_right">
    	<div class="photo_title">
        	<ul>
            <?php 
			if( !in_array(base64_decode($this->Get['id']),$album_category) ){
				echo '<li class="on"><a href="###">全部</a></li>';
			}else{
				echo '<li><a href="index.php?mod=photo&code=square">全部</a></li>';
			}
			foreach($album_category as $key=>$val){
				if( $this->Get['id'] == base64_encode($val) ){
					echo '<li class="on"><a href="#">'.$val.'</a></li>';
				}else{
					echo '<li><a href="index.php?mod=photo&code=square&id='.base64_encode($val).'">'.$val.'</a></li>';
				}
			} ?>	
            </ul>
            <span><a href="javascript:void(0);" onClick="javascript:showfloat();">创建相册</a></span>
        </div>
        <div class="square_list">
        	<ul>
		<?php foreach( $album_list as $albumInfo ){ ?>
            <li onmouseover="openandclose('square_name<?php echo $albumInfo['id'];?>','album_type<?php echo $albumInfo['id'];?>')" 
			onmouseout="openandclose('square_name<?php echo $albumInfo['id'];?>','album_type<?php echo $albumInfo['id'];?>')">
            <a href="<?php echo $albumInfo['album_first'];?>"><img src="<?php echo $albumInfo['pic'];?>" /></a>
            <span class="album_type" id="album_type<?php echo $albumInfo['id'];?>"><?php echo $albumInfo['category'];?></span>
            <span class="square_name" id="square_name<?php echo $albumInfo['id'];?>"><?php echo $albumInfo['nickname'];?>的相册<br /><?php echo $albumInfo['title'];?></span></li>
		<?php } ?>
            </ul>
   			<div class="float_both"></div>
			<div class="page">
				<span class="l">当前显示 <?php echo $page; ?> 篇/共 <?php echo $total_page; ?> 篇 </span> |
				<span class="r">
				<?php echo $page_arr['html'] ;?>
				</span>
			</div>
   			<div class="float_both"></div>
        </div>
    </div>
    <div class="float_both"></div>
</div>
<!--底部-->
<?php include_once 'photo_album_div.php';?>
<?php include_once 'footer.php';?>
